import request from "@/utils/request";
export function bannerList() {//banner图
    return request({
        method: "get",
        url: "/api/banner/bannerList"

    })
}
export function appNoticeList() {//公告列表
    return request({
        method: "get",
        url: "/api/notice/appNoticeList"

    })
}
export function listAuction(params) {//竞拍手续费
    return request({
        method: "get",
        url: "/api/common/listAuction",
        params
    })
}
export function appNoticeInfo(params) {//公告详情
    return request({
        method: "get",
        url: "/api/notice/appNoticeInfo",
        params
    })
}
export function appNoticeIpage(params) {//公告分页
    return request({
        method: "get",
        url: "/api/notice/appNoticeIpage",
        params

    })
}
//
export function saleCollection(params) {//热卖
    return request({
        method: "post",
        url: "/api/collection-purchase/saleCollection",
        data: params
    })

}
export function onlineCollection(params) {//预告
    return request({
        method: "post",
        url: "/api/collection-purchase/onlineCollection",
        data: params
    })

}
export function drawCollection(params) {//抽签
    return request({
        method: "post",
        url: "/api/collection-apply/saleCollection",
        data: params
    })

}

export function ipageByUserCollection(params) { //我的藏品订单
    return request({
        method: "post",
        url: "/api/collectionOrder/ipageByUserCollection",
        data: params
    })

}
export function ipageByUserBlindBox(params) { //我的盲盒订单
    return request({
        method: "post",
        url: "/api/collectionOrder/ipageByUserBlindBox",
        data: params
    })

}
export function collectionList(params) {//用户藏品记录
    return request({
        method: "get",
        url: "/api/customer/collection/collectionIpage",
        params
    })

}
export function collectionInfo(params) {//藏品信息
    return request({
        method: "get",
        url: "/api/collection-purchase/getInfo",
        params
    })

}
//
export function message(params) {//获取用户消息
    return request({
        method: "get",
        url: "/api/customer/userNotice/ipage",
        params
    })

}
export function setRead(params) {//信息已读
    return request({
        method: "get",
        url: "/api/customer/userNotice/setRead",
        params
    })

}
//
export function transfer(params) {//用户转账
    return request({
        method: "post",
        url: "/api/customerIntegral/transfer",
        data: params
    })

}

export function recharge(params) {//提交充值证明
    return request({
        method: "post",
        url: "/api/customerIntegral/recharge",
        data: params
    })

}
export function getRechargeProportion(params) {//获取当前充值比例
    return request({
        method: "post",
        url: "/api/customerIntegral/getRechargeProportion",
        data: params
    })

}
export function needSynthesisList(params) {//合成该藏品所需要的藏品
    return request({
        method: "get",
        url: "/api/collection-synthesis/needCollectionList",
        params
    })

}
//
export function immediatelySynthesis(params) {//合成
    return request({
        method: "get",
        url: "/api/collection-synthesis/immediatelySynthesis",
        params
    })

}
export function synthesisIpage(params) {//所有可以合成的藏品
    return request({
        method: "post",
        url: "/api/collection-synthesis/ipage",
        data: params
    })

}
//
export function openBlindBox(params) {//开启盲盒
    return request({
        method: "get",
        url: "/api/collection-blindBox/openBlindBox",
        params
    })

}
export function participateDraw(params) {//用户参与藏品申购抽签
    return request({
        method: "post",
        url: "/api/collection-apply/apply",
        params
    })

}
//
export function getCollectionInfo(params) {//获取收款信息
    return request({
        method: "get",
        url: "/api/common/getCollectionInfo",
        params
    })

}
//
export function add(params) {//提交申诉
    return request({
        method: "post",
        url: "/api/userAppeal/add",
        data: params
    })

}

export function cancel(params) {//取消申诉
    return request({
        method: "post",
        url: "/api/userAppeal/cancel",
        data: params
    })

}
export function sellIpge(params) {//页出售藏品，宝箱，钥匙，盲盒
    return request({
        method: "post",
        url: "/api/collection-sell/ipage",
        data: params
    })
}
//

export function shopping(params) {//点击购买
    return request({
        method: "post",
        url: "/api/collectionOrder/shopping",
        data: params
    })
}
export function shoppingPay(params, pwd, useSellId) {//点击支付
    return request({
        method: "post",
        url: "/api/collectionOrder/shoppingPay?orderCode=" + params + '&payPassword=' + pwd + '&useSellId=' + useSellId,
    })
}

export function Goauction(params) {//竞拍
    return request({
        method: "put",
        url: "/api/customerUser/collectionAuction/bid",
        data: params
    })
}
export function shoppingPays(params, pwd, isSystem) {//点击支付
    return request({
        method: "post",
        url: "/api/collectionOrder/shoppingPay?orderCode=" + params + '&payPassword=' + pwd + '&isSystem=' + isSystem,

    })

}
export function collectionAuctionList(params) {//订单详情
    return request({
        method: "post",
        url: "/api/customerUser/collectionAuction/list",
        data: params
    })
}

export function getInfo(params) {//订单详情
    return request({
        method: "get",
        url: "/api/collectionOrder/getInfo",
        params
    })
}
//
export function cancelPay(params) {//取消支付
    return request({
        method: "post",
        url: "/api/collectionOrder/cancel",
        data: params,

    })

}
//
export function getlist(params) {//获取分类
    return request({
        method: "get",
        url: "/api/collectionClass/list",
        params

    })

}
//
export function findByBlindBox(params) {//可开启那些盲盒
    return request({
        method: "get",
        url: "/api/collection-blindBox/collectionList",
        params

    })

}

export function drawIpage(params) {//中奖用户
    return request({
        method: "post",
        url: "/api/collection-apply/applyPrize",
        params

    })

}
//
export function mixRedode(params) {//合成记录
    return request({
        method: "get",
        url: "/api/collection-synthesis-log/listSynthesisLog",
        params

    })

}
//
export function mix(params) {//合成
    return request({
        method: "post",
        url: "/api/collection-synthesis/IpageBySynthesis",
        data: params

    })

}
//
export function jiaoyirecode(params) {//交易记录
    return request({
        method: "get",
        url: "/api/customerUser/integralLog/ipageRecharge",
        params

    })

}
//提现记录/api/customerUser/integralLog/ipageRecharge
///api/customer/userNotice/getInfo
export function NoticeInfo(params) {//合成
    return request({
        method: "get",
        url: "/api/customer/userNotice/getInfo",
        params

    })

}
// //
export function setSell(params) {//售出
    return request({
        method: "post",
        url: "/api/collection-sell/setSell",
        data: params

    })

}
// 
export function IPageByState(params) {//已售出
    return request({
        method: "get",
        url: "/api/customerUser/collection/sell/IPageByState",
        params

    })

}
//
// export function cancelSell(params) {//下架
//     return request({
//         method: "get",
//         url: "/api/customerUser/collection/sell/cancelSell",
//         params

//     })

// }
//
export function getIsNew(params) {//下架
    return request({
        method: "get",
        url: "/api/customer/userNotice/getIsNew",
        params

    })
}
//获取客服信息
export function listByCustomer(params) {
    return request({
        method: "get",
        url: "/api/common/listByCustomer",
        params
    })
}
//获取手续费 
export function SellProcedures(params) {
    return request({
        method: "get",
        url: "/api/common/listBySellProcedures",
        params

    })
}
//getAppletUrl获取小程序url
export function getAppletUrl(params) {
    return request({
        method: "get",
        url: "/api/pay/getAppletUrl",
        params

    })
}
//
export function editPay(params) {
    return request({
        method: "post",
        url: "/api/customer/user/editPay",
        data: params

    })
}
export function getwalletInfo(params) {
    return request({
        method: "get",
        url: '/api/common/listWithdrawalInfo',
        params
    })
}
//
export function generateUsdtAddr(params) {
    return request({
        method: "post",
        url: '/api/customer/user/generateUsdtAddr',
        data: params
    })
}
//提现
export function UserAdd(params) {
    return request({
        method: "post",
        url: '/api/CustomerUserWithdrawal/add',
        data: params
    })
}
//提现记录
export function Useripage(params) {
    return request({
        method: "POST",
        url: '/api/CustomerUserWithdrawal/ipage',

        data: params
    })
}
//积分记录
export function integralLog(params) {
    return request({
        method: "get",
        url: '/api/customerUser/integralLog/ipage',
        params
    })
}
//

export function addUsdt(params) {
    return request({
        method: "get",
        url: '/api/pay/addUsdt',
        params
    })
}
export function getCollectionInfotype(params) {
    return request({
        method: "get",
        url: '/api/collection-apply/getCollectionInfo',
        params
    })
}
//最低充值/api/pay/getMinMoney
export function getMinMoney(params) {
    return request({
        method: "get",
        url: '/api/pay/getMinMoney',
        params
    })
}
//获取首页类型
export function CollectionType(params) {
    return request({
        method: "get",
        url: '/api/collectionClass/list',
        params
    })
}
//获取首页销售状态
export function SellStatus(params) {
    return request({
        method: "get",
        url: '/api/collection/listCollectionSellStatus',
        params
    })
}
// 转赠
export function conversion(params) {
    return request({
        method: "post",
        url: '/api/conversion/conversionCollection',
        params
    })
}
//转赠列表

export function conversionList(params) {
    return request({
        method: "get",
        url: '/api/conversion/conversionList',
        params
    })
}
//
export function isSend(params) {
    return request({
        method: "get",
        url: '/api/conversion/isSend',
        params
    })
}
//待接收列表
export function ToBeReceived(params) {
    return request({
        method: "get",
        url: '/api/conversion/ipageToBeReceived',
        params
    })
}
//确认和接受 /api/conversion/confirmReceive
export function confirmReceive(params) {
    return request({
        method: "post",
        url: '/api/conversion/confirmReceive',
        params
    })
}
//登录密码
export function editPassword(params) {
    return request({
        method: "post",
        url: '/api/customer/user/editPassword',
        params
    })
}
///api/oauth/registerLogin
export function registerLogin(params) {
    return request({
        method: "post",
        url: '/api/oauth/registerLogin',
        data: params
    })
}
//关于我们 /api/common/aboutUs
export function aboutUs(params) {
    return request({
        method: "get",
        url: '/api/common/aboutUs',
        params
    })
}
// ZHAUNGZENG 手续费
export function conversionfee(params) {
    return request({
        method: "get",
        url: '/api/common/conversionInfo',
        params
    })
}
// 收货地址
export function editReceiving(params) {
    return request({
        method: "post",
        url: '/api/customer/user/editReceiving',
        params
    })
}
//领取空投 
export function airrevice(params) {
    return request({
        method: 'post',
        url: "/api/customer/airdrop/receive/receive",
        params
    })
}

//获得的盲盒
export function blindBoxIpage(params) {
    return request({
        method: 'get',
        url: "/api/customer/collection/blindBoxIpage",
        params
    })
}
//申购详情
export function applygetInfo(params) {
    return request({
        method: 'get',
        url: "/api/collection-apply/getInfo",
        params
    })
}
//所有盲盒/api/collection-blindBox/saleCollection
export function blindBoxsaleCollection(params) {
    return request({
        method: 'post',
        url: "/api/collection-blindBox/saleCollection",
        data: params
    })
}
//盲盒详情
export function blindBoxgetInfo(params) {
    return request({
        method: 'get',
        url: "/api/collection-blindBox/getInfo",
        params
    })
}
//合成详情 /api/collection-synthesis/getInfo
export function synthesisgetInfo(params) {
    return request({
        method: 'get',
        url: "/api/collection-synthesis/getInfo",
        params
    })
}
// 用户拥有的藏品列表
export function IPageByCollectionUser(params) {
    return request({
        method: 'post',
        url: "/api/customer/collection/IPageByCollectionUser",
        data: params
    })
}
//用户藏品详情
export function getCollectionInf(params) {
    return request({
        method: 'get',
        url: "/api/collection-sell/getByUserCollectionId",
        params
    })
}
//拥有的盲盒
export function userblindBoxIpage(params) {
    return request({
        method: 'post',
        url: "/api/customer/collection/blindBoxIpage",
        data: params
    })
}
//转售详情 
export function conversionInfo(params) {
    return request({
        method: 'get',
        url: "/api/conversion/getInfo",
        params
    })
}
//市场详情
export function sellgetInfo(params) {
    return request({
        method: 'get',
        url: "/api/collection-sell/getInfo",
        params
    })
}
export function orderDetail(params) {
    return request({
        method: 'get',
        url: "/api/customerUser/collectionAuction/orderDetail",
        params
    })
}
export function collectionAuctionOrder(params) {
    return request({
        method: 'put',
        url: "/api/customerUser/collectionAuction/order",
        data: params
    })
}

export function collectionAuctionCancel(id) {
    return request({
        method: 'put',
        url: "/api/customerUser/collectionAuction/cancel?id=" + id,
    })
}

//取消出售
export function cancelSell(params) {
    return request({
        method: 'post',
        url: "/api/collection-sell/cancelSell",
        params
    })
}
//更多盲盒 
export function IPageByBlindBoxUser(params) {
    return request({
        method: 'post',
        url: "/api/customer/collection/IPageByBlindBoxUser",
        data: params
    })
}
//支付宝 
export function alipay(params) {
    return request({
        method: 'post',
        url: "/api/alipay/do",
        params
    })
}
